﻿@{
    Layout = null;
    Layout = "~/Views/Shared/_Form.cshtml";
    Layout = "~/Views/Shared/_Index.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>WareHouseNoticeExcel</title>
 
    <style type="text/css">
 

        #area5 {
            width: 98%;
            float: left;
            margin-right: 10px;
        }

    </style>

</head>
<body>
<h2 style="font-family:隶书;font-weight:bold;margin-left:530px">Excel导出</h2>
    <div style="position: absolute; top: 22px; right: 28px;">
        <a class="btn btn-default " onclick="btn_return()"><i class="fa fa-close" style="margin-right: 18px; font-size: 13px;"></i>&nbsp返回&nbsp;</a>
    </div>
  
    <div id="area5">
        <div class="gridPanel">
            <table id="gridList"></table>
            <style>
                .ui-jqgrid {
                    border-left: 0px;
                    border-right: 0px;
                    border-bottom: 0px;
                }
            </style>
        </div>
    </div>
</body>

</html>




<script>
    var moduleId = $.request("moduleId");
    $(function () {
        gridList();
    })
    function gridList() {
        $("#gridList").dataGrid({
            treeGrid: true,
            treeGridModel: "adjacency",
            ExpandColumn: "F_Location",
            url: "/SystemManage/ModuleButton/GetTreeGridJson?moduleId=" + moduleId,
            height: $(window).height() - 90,
            colModel: [
                 { label: "来料单位", name: "F_Id", width: 120, align: 'left' },
                { label: "入库日期", name: "F_ModuleId", width: 120, align: 'left' },
                { label: '来料编号', name: 'F_FullName', width: 180, align: 'left' },
                {
                    label: '来料名称', name: 'F_Location', width: 100, align: 'left',
                    formatter: function (cellvalue) {
                        if (cellvalue == 1) {
                            return "初始";
                        } else {
                            return "选中";
                        }
                    }
                },
                { label: '批次号', name: 'F_JsEvent', width: 160, align: 'left' },
                { label: '开票数量', name: 'F_UrlAddress', width: 270, align: 'left' },
                 { label: '容器编号', name: 'F_Split', width: 160, align: 'left' },
                { label: '容器数量', name: 'F_IsPublic', width: 270, align: 'left' },
                { label: '批次号', name: 'F_AllowEdit', width: 160, align: 'left' },
                { label: '实际箱数', name: 'F_AllowDelete', width: 270, align: 'left' },
            ]
        });
    }
    function btn_return() {
        parent.$.detailClose();
    }
</script>



